package com.example.lucene.model;

import java.sql.Timestamp;
import java.util.List;

/**
 * Created by zhanghje on 2017-09-25.
 */
public class KnowledgeBase {
    private long knowledgeBaseId;
    private String productCode;
    private String title;
    private String content;
    private String keyWords;
    private String fileName;
    private String previewImageFileName;
    private String language;
    private String source;
    private String sourceId;
    private String knowledgeBaseCategory;
    private Timestamp effectTime;
    private String md5Str;
    private String validCode;
    private String isWechatSearched;
    //适用版本
    private String applicableVersion;

    private String fullname;
    private String createtime;
    private String lasttime;
    private List<KnowledgebaseProblemClassification> problemClassifications;


    public long getKnowledgeBaseId() {
        return knowledgeBaseId;
    }

    public void setKnowledgeBaseId(long knowledgeBaseId) {
        this.knowledgeBaseId = knowledgeBaseId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = (title == null) ? "" : title;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    public void setContent(String content) {
        this.content = (content == null) ? "" : content;
    }

    public String getKeyWords() {
        return keyWords == null ? "" : keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = (keyWords == null) ? "" : keyWords;
    }

    public String getFileName() {
        return fileName == null ? "" : fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = (fileName == null) ? "" : fileName;
    }

    public String getPreviewImageFileName() {
        return previewImageFileName == null ? "" : previewImageFileName;
    }

    public void setPreviewImageFileName(String previewImageFileName) {
        this.previewImageFileName = (previewImageFileName == null) ? "" : previewImageFileName;
    }

    public String getKnowledgeBaseCategory() {
        return knowledgeBaseCategory;
    }

    public void setKnowledgeBaseCategory(String knowledgeBaseCategory) {
        this.knowledgeBaseCategory = (knowledgeBaseCategory == null) ? "0" : knowledgeBaseCategory;
    }

    public Timestamp getEffectTime() {
        return effectTime;
    }

    public void setEffectTime(Timestamp effectTime) {
        this.effectTime = effectTime;
    }

    public String getMd5Str() {
        return md5Str == null ? "" : md5Str;
    }

    public void setMd5Str(String md5Str) {
        this.md5Str = (md5Str == null) ? "" : md5Str;
    }

    public String getValidCode() {
        return validCode == null ? "" : validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = (validCode == null) ? "" : validCode;
    }

    public String getIsWechatSearched() {
        return isWechatSearched;
    }

    public void setIsWechatSearched(String isWechatSearched) {
        this.isWechatSearched = (isWechatSearched == null) ? "1" : isWechatSearched;
    }

    public String getApplicableVersion() {
        return (applicableVersion == null) ? "" : applicableVersion;
    }

    public void setApplicableVersion(String applicableVersion) {
        this.applicableVersion = applicableVersion;
    }

    public List<KnowledgebaseProblemClassification> getProblemClassifications() {
        return problemClassifications;
    }

    public void setProblemClassifications(List<KnowledgebaseProblemClassification> problemClassifications) {
        this.problemClassifications = problemClassifications;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getLasttime() {
        return lasttime;
    }

    public void setLasttime(String lasttime) {
        this.lasttime = lasttime;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }
}
